using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._ModelTools
{
    /// <summary>
    /// <para>Expression</para>
    /// <para>Expression</para>
    /// <para>表达</para>
    /// </summary>    
    [DisplayName("Expression")]
    public class ExpressionIfThenElse : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ExpressionIfThenElse()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_expression">
        /// <para>Expression</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        public ExpressionIfThenElse(object _expression)
        {
            this._expression = _expression;
        }
        public override string ToolboxName => "Model Tools";

        public override string ToolName => "Expression";

        public override string CallName => "mb.ExpressionIfThenElse";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_expression, _code_block, _true, _false];

        /// <summary>
        /// <para>Expression</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Expression")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _expression { get; set; }


        /// <summary>
        /// <para>Code Block</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Code Block")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _code_block { get; set; } = null;


        /// <summary>
        /// <para>True</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("True")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _true { get; set; }


        /// <summary>
        /// <para>False</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("False")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _false { get; set; }


        public ExpressionIfThenElse SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}